<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JIIL原版生存服 - 纯净生存体验</title>
    <style>
        /* === 全局样式 === */
        :root {
            --primary-blue: #2C7BE5;     /* 主蓝 */
            --light-bg: #EFF5FC;         /* 浅蓝背景 */
            --dark-text: #1A3A6C;         /* 深蓝文字 */
            --accent: #FF6B6B;            /* 按钮点缀色 */
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Poppins', '思源黑体', sans-serif;
            background-color: var(--light-bg);
            color: var(--dark-text);
            line-height: 1.6;
        }
        
        /* === 导航栏 (蓝底白字) === */
        .navbar {
            background-color: var(--primary-blue);
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: white;
        }
        .nav-links {
            display: flex;
            gap: 2rem;
        }
        .nav-links a, .nav-links button {
            color: white;
            text-decoration: none;
            padding: 8px 16px;
            position: relative;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        .nav-links a:hover, .nav-links button:hover {
            background: rgba(255,255,255,0.15);
        }
        .nav-links a:hover::after, .nav-links button:hover::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: white;
        }
        .external-links {
            display: flex;
            gap: 1rem;
            margin-left: 2rem;
        }
        .external-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 8px 16px;
            border-radius: 4px;
            background: rgba(255,255,255,0.1);
            transition: background 0.3s;
        }
        .external-btn:hover {
            background: rgba(255,255,255,0.2);
        }
        .menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
        }

        /* === 英雄区域 (顶部大图+标题) === */
        .hero {
            text-align: center;
            padding: 5rem 10%;
            background: linear-gradient(rgba(44,123,229,0.8), rgba(44,123,229,0.9)), url('https://example.com/survival-bg.jpg');
            background-size: cover;
            color: white;
        }
        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        /* === 服务器地址展示 (独立栏) === */
        .server-address {
            background: rgba(255,255,255,0.15);
            border: 2px dashed white;
            padding: 1rem;
            font-family: monospace;
            font-size: 1.2rem;
            margin: 2rem auto;
            max-width: 300px;
            border-radius: 5px;
        }

        /* === 特点展示区 (单行列表) === */
        .features {
            padding: 3rem 10%;
        }
        .feature-item {
            display: flex;
            align-items: center;
            margin: 1.5rem 0;
            padding: 1.2rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        .feature-item span {
            font-size: 1.1rem;
            margin-left: 15px;
        }

        /* === 服务器信息按钮 === */
        .info-btn {
            background-color: var(--primary-blue);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 50px;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.3s;
            box-shadow: 0 4px 6px rgba(44,123,229,0.3);
        }
        .info-btn:hover {
            background-color: var(--accent);
        }

        /* === 页脚 === */
        footer {
            text-align: center;
            padding: 2rem;
            background: var(--dark-text);
            color: white;
            margin-top: 3rem;
        }
        
        /* === 模态框样式 === */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
        }
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 2rem;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            text-align: center;
        }
        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark-text);
        }
        .qr-code {
            width: 200px;
            height: 200px;
            margin: 20px auto;
            background: #f8f8f8;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* === 响应式设计 (移动端适配) === */
        @media (max-width: 1024px) {
            .navbar {
                flex-wrap: wrap;
            }
            .external-links {
                margin-left: 0;
                margin-top: 1rem;
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 768px) {
            /* 导航栏转为汉堡菜单 */
            .nav-links, .external-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 60px;
                left: 0;
                width: 100%;
                background: var(--primary-blue);
                padding: 1rem 0;
                gap: 0.5rem;
            }
            .nav-links.active, .external-links.active {
                display: flex;
            }
            .nav-links a, .nav-links button, .external-links button {
                width: 90%;
                margin: 0.3rem auto;
                text-align: center;
            }
            .menu-btn {
                display: block;
            }
            
            /* 特点区图标缩小 */
            .feature-item {
                font-size: 0.9rem;
            }
            
            /* 信息按钮触控优化 */
            .info-btn {
                padding: 15px 40px;
                width: 90%;
                margin: 0 auto;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="logo">JIIL Studio</div>
        <div class="nav-links">
            <a href="#features">服务器特色</a>
        </div>
        <div class="external-links">
            <button id="officialBtn" class="external-btn">
                <span>官方论坛</span>
            </button>
            <button id="qqBtn" class="external-btn">
                <span>QQ群</span>
            </button>
            <button id="wechatBtn" class="external-btn">
                <span>微聊加入</span>
            </button>
        </div>
        <button class="menu-btn">☰</button>
    </nav>

    <!-- 英雄区域 -->
    <section class="hero">
        <h1>JIIL原版生存服</h1>
        <div class="server-address">地址：sc.jiil.top:50000</div>
        <button class="info-btn" id="serverInfoBtn">查看服务器实时信息</button>
    </section>

    <!-- 特点展示区 -->
    <section class="features" id="features">
        <div class="feature-item">⛏️ <span>纯净原版生存：零模组干扰，回归生存本质</span></div>
        <div class="feature-item">🌍 <span>一段时间重置: 减少bug发生,增加新鲜感</span></div>
        <div class="feature-item">🛡️ <span>公平竞技: 完全无秩序,自由发展，弱肉强食(其实是懒得管)</span></div>
        <div class="feature-item">🎮 <span>土豆优化主机: 保证你不会瞬移≤150ms</span></div>
        <div class="feature-item">🌙 <span>生存必备插件: 再也不用跑来跑去了</span></div>
    </section>

    <!-- 服务器信息弹窗 -->
    <div class="server-info-modal" id="infoModal" style="display:none;"></div>
    
    <!-- QQ群二维码弹窗 -->
    <div id="qqModal" class="modal">
        <div class="modal-content">
            <span class="close-btn" id="qqClose">×</span>
            <h3>加入官方QQ群</h3>
            <div class="qr-code">点击链接加入群聊【JIIL的基岩版服务器交流群】：https://qm.qq.com/q/h9jrH68dOg</div>
            <p>群号: 462873220</p>
        </div>
    </div>
    
    <!-- 微信群二维码弹窗 -->
    <div id="wechatModal" class="modal">
        <div class="modal-content">
            <span class="close-btn" id="wechatClose">×</span>
            <h3>加入微聊群(访问的是群信息,如果要加群，请注册账号后在菜单里选群聊选加入群聊搜索相同名字)</h3>
            <div class="qr-code">链接https://chat.jiil.top/qlinfo.php?group_name=JIIL%E7%9A%84%E6%88%91%E7%9A%84%E4%B8%96%E7%95%8C%E4%BA%A4%E6%B5%81%E7%BE%A4</div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer>
        <p>© 2025 JIIL Studio 版权所有</p>
    </footer>

    <script>
        // 移动端菜单切换
        document.querySelector('.menu-btn').addEventListener('click', function() {
            const navLinks = document.querySelector('.nav-links');
            const externalLinks = document.querySelector('.external-links');
            navLinks.classList.toggle('active');
            externalLinks.classList.toggle('active');
        });

        // 服务器信息按钮
        document.getElementById('serverInfoBtn').addEventListener('click', function() {
    // 将URL替换为你的目标页面地址
    window.location.href = "server.html"; 
  });

        // 官方论坛按钮
        document.getElementById('officialBtn').addEventListener('click', function() {
            window.open('https://www.jiil.top', '_blank');
        });

        // QQ群按钮
        document.getElementById('qqBtn').addEventListener('click', function() {
            document.getElementById('qqModal').style.display = 'block';
        });

        // 微信群按钮
        document.getElementById('wechatBtn').addEventListener('click', function() {
            document.getElementById('wechatModal').style.display = 'block';
        });

        // 关闭按钮
        document.getElementById('qqClose').addEventListener('click', function() {
            document.getElementById('qqModal').style.display = 'none';
        });
        
        document.getElementById('wechatClose').addEventListener('click', function() {
            document.getElementById('wechatModal').style.display = 'none';
        });

        // 点击模态框外部关闭
        window.addEventListener('click', function(event) {
            if (event.target.classList.contains('modal')) {
                event.target.style.display = 'none';
            }
        });
    </script>
</body>
</html>